package com.system.healthproject.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@ApiModel
public class Role  implements Serializable {

    @NotNull
    @ApiModelProperty(name = "roleId",notes = "角色id")
    private Integer roleId;


    @NotBlank
    @ApiModelProperty(name = "roleName",notes = "角色英文名称")
    private String roleName;

    @NotBlank
    @ApiModelProperty(name = "roleNamezh",notes = "角色中文名称")
    private String roleNamezh;

    @ApiModelProperty(hidden = true)
    private List<Menu> menus;

    public List<Menu> getMenus() {
        return menus;
    }

    public void setMenus(List<Menu> menus) {
        this.menus = menus;
    }

    public Role() {

    }

    public Role(Integer roleId, String roleName, String roleNamezh) {
        this.roleId = roleId;
        this.roleName = roleName;
        this.roleNamezh = roleNamezh;
    }

    public Role(Integer roleId, String roleName, String roleNamezh, Integer roleParentid) {
        this.roleId = roleId;
        this.roleName = roleName;
        this.roleNamezh = roleNamezh;
        this.roleParentid = roleParentid;
    }

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column role.role_parentId
     *
     * @mbg.generated
     */
    @ApiModelProperty(name = "roleParentid",notes = "父级角色id")
    private Integer roleParentid;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column role.role_id
     *
     * @return the value of role.role_id
     *
     * @mbg.generated
     */
    public Integer getRoleId() {
        return roleId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column role.role_id
     *
     * @param roleId the value for role.role_id
     *
     * @mbg.generated
     */
    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column role.role_name
     *
     * @return the value of role.role_name
     *
     * @mbg.generated
     */
    public String getRoleName() {
        return roleName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column role.role_name
     *
     * @param roleName the value for role.role_name
     *
     * @mbg.generated
     */
    public void setRoleName(String roleName) {
        this.roleName = roleName == null ? null : roleName.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column role.role_nameZh
     *
     * @return the value of role.role_nameZh
     *
     * @mbg.generated
     */
    public String getRoleNamezh() {
        return roleNamezh;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column role.role_nameZh
     *
     * @param roleNamezh the value for role.role_nameZh
     *
     * @mbg.generated
     */
    public void setRoleNamezh(String roleNamezh) {
        this.roleNamezh = roleNamezh == null ? null : roleNamezh.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column role.role_parentId
     *
     * @return the value of role.role_parentId
     *
     * @mbg.generated
     */
    public Integer getRoleParentid() {
        return roleParentid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column role.role_parentId
     *
     * @param roleParentid the value for role.role_parentId
     *
     * @mbg.generated
     */
    public void setRoleParentid(Integer roleParentid) {
        this.roleParentid = roleParentid;
    }
}
